/**
 * 
 *//*
package com.cipe.cmrs.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cipe.cmrs.model.Cipeprojectrollup;
import com.cipe.cmrs.model.User;
import com.cipe.cmrs.util.DateUtil;

*//**
 * @author Incepio
 * 
 *//*
@Service
@Transactional
public class CipeprojectrollupService extends BaseService<Cipeprojectrollup> {
	@Autowired
	private UserService userService;

	public Cipeprojectrollup saveCipeprojectrollup(Cipeprojectrollup cipeprojectrollup, Integer userId) {
		if (cipeprojectrollup != null) {
			User user = userService.findById(userId);
			Cipeprojectrollup dbCipeprojectrollup = findById(cipeprojectrollup.getId());
			if (dbCipeprojectrollup == null) {
				dbCipeprojectrollup = new Cipeprojectrollup();
				dbCipeprojectrollup.setCreatedBy(user);
				dbCipeprojectrollup.setCreationDate(DateUtil.getCurrentDate());
			}
			dbCipeprojectrollup.setDisplayName(cipeprojectrollup.getDisplayName());
			dbCipeprojectrollup.setUpdatedBy(user);
			dbCipeprojectrollup.setUpdationDate(DateUtil.getCurrentDate());
			return merge(dbCipeprojectrollup);
		}
		return null;
	}
}
*/